
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title>{:getStoreName($_GET['local_id'])}-商品分类</title>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/category.css">
    <include file="Public/common_js"/>
    <script type="text/javascript">
		_global.isDiyLazyLoad = true;
	</script>
</head>
<body>
<div class="warp" style="padding-bottom:1.1rem;">
    <div class="category-bar">
        <!--<p class="city">全部分类</p>-->
<!--        <p class="tab">
            <a href="{:url('category/index', array('local_id' => $storeData['local_id']),'')}" class="active">{$storeData.local_name}</a>
            &lt;!&ndash;如果是全国送&ndash;&gt;
            <?php if ($storeData['is_self'] == 1){ ?>
            <a href="{:url('category/index', array('local_id' => $top_self_store['local_id']),'')}"><?php echo $top_self_store['local_name'];?></a>
            <?php }else { ?>
            <a href="/category/index/local_id/<?php echo $self_store['local_id'];?>/top_local_id/<?php echo $storeData['local_id'];?>"><?php echo $self_store['local_name'];?></a>
            <?php } ?>
        </p>-->
        <p class="tab">
            <?php if ($storeData['is_self'] != 1){ ?>
            <a href="{:url('category/index', array('local_id' => $storeData['local_id'], 'top_local_id' => 11),'')}" <if condition="$storeData['local_id'] neq 11">class="active"</if> >{$storeData.local_name}</a>
            <!--如果是全国送-->
            <a href="{:url('category/index', array('local_id' => '11', 'top_local_id' => $storeData['local_id']),'')}" <if condition="$storeData['local_id'] eq 11">class="active"</if> >全国送</a>
            <?php }else{ ?>
            <a href="{:url('category/index', array('local_id' => $top_self_store['local_id'], 'top_local_id' => 11),'')}" <if condition="$storeData['local_id'] neq 11">class="active"</if> >{$top_self_store.local_name}</a>
            <!--如果是全国送-->
            <a href="{:url('category/index', array('local_id' => '11', 'top_local_id' => $top_self_store['local_id']),'')}" <if condition="$storeData['local_id'] eq 11">class="active"</if> >全国送</a>
            <?php } ?>
        </p>
        <a href="{:url('search/index')}" class="search"></a>
    </div>
    <div class="fixed-category">
        <!-- 左侧 -->
        <div class="left-menu">
            <div class="menu-content">
                <ul>
                    <foreach name = "parent" item="v" key="k">
                        <li><a href="javascript:void(0);">{$v.cat_name}</a></li>
                    </foreach>
                </ul>
            </div>
        </div>
        <!-- 右侧 -->
        <div class="right-box">
            <div class="right-content">
                <!-- 本周促销 -->
                <div class="week-promotion">
                    <foreach name = "parent" item="v" key="k">
                        <p class="category-promote img_{$k}"><a href="{:url('GoodsList/index', array('category_id'=>$v['store_cat_id'],'local_id' => $storeData['local_id']),'')}"><img class="img-lazyload" src="/Public/Home/images/blank.png" data-original="/Uploads/{$parent[$k]['cat_img']}"></a></p>
                    </foreach>
                </div>
                <!-- 栏目分类 -->
                <div class="second-category">
                    <h3>栏目分类</h3>
                    <foreach name = "second" item="second_val" key="k">
                        <div class="category-list second_{$k}" >
                        <foreach name="second_val" item="v">
                            <a href="{:url('GoodsList/index', array('category_id'=>$v['store_cat_id'],'local_id' => $storeData['local_id']),'')}"><img class="img-lazyload" src="/Public/Home/images/blank.png" data-original="/Uploads/{$v['cat_img']}" alt=""><p>{$v.cat_name}</p></a>
                        </foreach>
                            <!--<a href="" class="seeMore">查看全部>></a>-->
                        </div>
                    </foreach>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 网站主菜单 -->
<include file="Public/menu"/>
<script type="text/javascript" src="__PUBLIC__/Home/js/goods/category.js?v=2017020270012"></script>
</body>
</html>
